package cn.enilu.flash.bean.dto;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.List;

@Getter
@Setter
public class GoodsDTO {
    private Long id;
    @NotBlank(message = "商品名称不能为空")
    private String name;
    private String pic;
    private String  gallery;
    private Long idCategory;
    @NotBlank(message = "商品简介不能为空")
    private String descript;
    private String detail;
    /**
     * 如果商品是多规格，则存所有库存之和
     */
    private Integer stock=0;
    /**
     * 如果商品是多规格，则存最低价
     */
    private BigDecimal price;
    private Boolean isDelete= false;
    private Boolean isOnSale = false;
    private Boolean isNew = false;
    private Boolean isHot = false;
    private Integer likeNum;
    private List<Long> labelId;
}
